<%@page import="com.ostrich.system.bean.TostSysParaminfo"%>
<%@page import="com.ostrich.system.analysis.ParaminfoUtil"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <%@include file="/view/resource.jsp" %>
  </head>
  <body class="easyui-layout">
  	 <!-- Search panel start -->
 	 <div class="ui-search-panel" region="north" style="height: 80px;" title="过滤条件" data-options="striped: false,collapsible:false,iconCls:'icon-search',border:false" >   
 	 <form id="searchForm">
 	 	<input class="hidden" id='search_parentId' name="parentId">
 	 	<p class="ui-fields">
            <label class="ui-label">请输入部门名称:</label> 
            <input name="hdpName" class="easyui-box ui-text" style="width:100px;">
        </p>
        <a id="btn-search" class="easyui-linkbutton" iconCls="icon-search">查询</a>
      </form>  
     </div> 
     <!--  Search panel end -->
     <!-- DataList  -->
	 <div region="center" border="false" >
     	<table id="data-list" ></table>
     </div>
     <!-- Edit Win&From -->
     <div id="edit-win" class="easyui-dialog" title="Edit Menu" data-options="closed:true,iconCls:'icon-save',modal:true"  style="width:500px;height:450px;">  
     	<form id="editForm" class="ui-form" method="post" target="ifm" action="save.do" name="editForm"> 
     	 <!-- 隐藏文本框 -->
     	 <input class="hidden" name="id">
     	 <input class="hidden" name="deleted">
    	 <input class="hidden" name="parentId" id='edit_parentId'>
    	 <div class="ui-edit"> 
	               <div class="ftitle">详细</div>    
		           <div class="fitem">  
		               <label>上级部门：</label> 
		               <span id="lie"></span>
		           </div>  
		           <div class="fitem">  
		               <label>部门名称:</label>  
		               
		                <input class="easyui-validatebox" type="text" name="hdpName" data-options="required:true">
		           </div>  
		           <div class="fitem">  
		               <label>说明:</label>  
		               <input class="easyui-validatebox" type="text" name="hdpDesc" data-options="required:true">
		           </div>  
		           <div class="fitem">
		               <label>类型:</label>  <!-- onblur -->
		               <select name="hdpType" id="hdpType"><% Map<Integer,TostSysParaminfo> type = ParaminfoUtil.getParamByPid(35); 
		               for(Map.Entry<Integer,TostSysParaminfo> m:type.entrySet()){
		               	%><option value="<%=m.getValue().getId()%>"><%=m.getValue().getPaName() %></option><%} %>
		              </select>
		               
		           </div>  
		           <div class="fitem">
		               <label>状态:</label>  
		               <select name="hdpStatus" id="hdpStatus"><% Map<Integer,TostSysParaminfo> typeStatus = ParaminfoUtil.getParamByPid(30); 
		               for(Map.Entry<Integer,TostSysParaminfo> m:typeStatus.entrySet()){
		               	%><option value="<%=m.getValue().getId()%>"><%=m.getValue().getPaName() %></option><%} %>
		              </select>
		              
		           </div>  
	      </div>
     	</form>
     	<iframe id='ifm' name='ifm' style='visibility:hidden;display:none'></iframe>
  	 </div>
  <script type="text/javascript" src="<%=basePath%>/osjs/manpower/TostHrDepartinfo.js"></script>
  </body>
</html>